﻿@model MasoQna.Models.Writing

@{
    bool isQuestion = Model.GetType().Equals(typeof(MasoQna.Models.Question));
}

<div class="writing" data-id="@Model.Id">
<div class="writingSidebar">
    <div class="voteContainer">
        <img src="/Content/image/up.gif" alt="up vote" />
        <div class="voteCount">@(Model.UpVoteCount - Model.DownVoteCount)</div>
        <img src="/Content/image/down.gif" alt="down vote" />
    </div>
</div>
<div class="mainWriting">
    @if (isQuestion == true)
    {
        <div class="questionInfo">
        </div>
    }
    <div class="Content">
        @(new MvcHtmlString(Model.Content))
    </div>
    <div class="editors">
        <div class="nameTag qnameTag">
            <div class="profileImg">
            </div>
            <div class="profile">
                <div class="nickname">
                    @Model.Writer.Name 
                </div>
                <div class="userInfoSummary">
                    <span class="reputation">@Model.Writer.Reputation</span>
                </div>
            </div>
        </div>
    </div>
</div>
<div class=clr></div>
</div>